package com.aaa.multithreading.demo04;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2022/10/31
 */
public class Test01 {
    public static void main(String[] args) {
        Card card = new Card(0);

        PeopleExist p1 = new PeopleExist(card);
        PeopleTake p2 = new PeopleTake(card);

        Thread thread1 = new Thread(p1,"谢霆锋");
        Thread thread2 = new Thread(p2, "张柏芝");

        thread1.start();
        thread2.start();
    }
}
